﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using System.Data;

namespace logic
{
    public class companyWeek
    {
        public static void insert(CompanyWeekEntity cw)
        {
            CompanyWeek.insert(cw);
        }

        public static void update(CompanyWeekEntity cw)
        {
            CompanyWeek.update(cw);
        }

        public static CompanyWeekEntity getById(int csId)
        {
            return CompanyWeek.getById(csId);
        }
        public static CompanyWeekEntity getByWeek(int weekday, int companyId)
        {
            return CompanyWeek.getByWeek(weekday, companyId);
        }

        public static void delete(int csId)
        {
            CompanyWeek.delete(csId);
        }

        public static DataTable getByProducts(string products)
        {
            return CompanyWeek.getByProducts(products);
        }

        public static DataTable getProductsWithPriceByWeek(int weekday, int companyId)
        {
            return CompanyWeek.getProductsWithPriceByWeek(weekday,companyId);
        }
    }
}
